import axios from 'axios';

// 获取个人资料;
export function getPersonal(data: any) {
  return axios.get('/account/detail', {
    params: data,
  });
}

// 编辑个人资料
export function editPersonal(data: any) {
  return axios.post('/account/edit', data);
}

// 修改密码
export function changePwd(data: any) {
  return axios.post('/account/pwd', data);
}

// 密码日志
export function pwdlog(data: any) {
  return axios.get('/account/pwd_log', {
    params: data,
  });
}
// 登录日志
export function loginlog(data: any) {
  return axios.get('/account/login_log', {
    params: data,
  });
}
